package thread;

public class MyThreadTest {
    public static void main(String[] args) {
        while (true) {
            final Thread thread = new Thread(new Runnable() {
                public void run() {
                    System.out.println(Thread.currentThread().getName());
                }
            });
            thread.start();
        }
    }
}
